using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityDeductionsUpdateExtend
{
		public static Deductions ToUpdateEntity(this RequestDeductionsDto dto)
		{
			return new Deductions
			{
				DId = dto.id,
				DDeductionCount = dto.deductionCount,
			};
		}
	}
}
